require 'net/http'

class Yours
    Host = "www.yournavigation.org"
    BasePath = "/api/1.0/gosmore.php?format=kml&"

    # vehicle:
    #  motorcar
    #  bicycle
    def self.route_get(flat, flon, tlat, tlon, vehicle = 'motorcar')
        qstr = "flat=%s&flon=%s&tlat=%s&tlon=%s&v=%s&fast=1&layer=mapnik" % [flat, flon, tlat, tlon, vehicle]
        Net::HTTP.get(Host, BasePath + qstr)
    end
end
